<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>黑名单信息</title>
    <link rel="stylesheet" href="${ctx}/assets/css/amazeui.min.css" />
    <link rel="stylesheet" href="${ctx}/assets/css/app.css">
    <link rel="stylesheet" href="${ctx}/assets/css/layer.css">
    <link rel="stylesheet" href="${ctx}/assets/css/bootstrap.min.css">
    <link rel="stylesheet" href="${ctx}/assets/css/taskRegister.css">
    <link rel="stylesheet" type="text/css" href="${ctx}/assets/css/xcConfirm.css"/>
</head>
<body>
<div class="form-main">
    <div class="form-header">
        <h4>黑名单信息</h4>
    </div>
    <div class="content" >
        <div id="change_margin_1">
            <label for="blacklistName">黑名单</label>
            <input type="text" id="blacklistName" class="form-control" placeholder="黑名单" onblur="oBlur_1()" onfocus="oFocus_1()">
        </div>
        <!-- input的value为空时弹出提醒 -->
        <p id="remind_1"></p>

        <div id="change_margin_2">
            <label for="blacklistValid">是否立即生效</label>
           <!--  <input id="blacklistValid" class="form-control" placeholder="是否生效"> -->
           <select id="blacklistValid">
           	<option value=true>是</option>
           	<option value=false>否</option>
           </select>
            <!--  <input id="files" type="file" class="form-control" placeholder="选择软件运行路径"> -->
            <input id="id" type="hidden" />
        </div>
    </div>
    <hr>
    <!-- <div class="action mr20" style="float: left;" onclick="BrowseFolder()" id="localChose">
        <ul class="actions-btn"><li class="green">本地选择</li></ul>
    </div> -->
    <div class="action mr20" style="float: right;" id="closeIframe">
        <ul class="actions-btn"><li class="green">取消</li></ul>
    </div>
    <div class="action mr20" style="float: right;" id="saveSoftware">
        <ul class="actions-btn"><li class="green">保存</li></ul>
    </div>
</div>
<script src="${ctx}/assets/js/jQuery/jquery.min.js"></script>
<script src="${ctx}/assets/js/common/xcConfirm.js"></script>
<script src="${ctx}/assets/js/common/common.fun.js"></script>
<script src="${ctx}/assets/js/common/config.js"></script>
<script src="${ctx}/assets/js/layer/layer.js"></script>
<script src="${ctx}/assets/js/clusterMoniting/blacklistAdd.js"></script>

<script type="text/javascript">
$(function () {
	var id = GetQueryString("id");
	if(id !=null){
		$.ajax({
	        type:"GET",
	        url:constUrl+"ws/remote/blacklist/get.action",
	        dataType:"json",
	        data: {
	            id:id
	        },
	        success:function(data){
	        	console.log(data);
	        	if(data.desc=="SUCCESS"){
	        	
	        		$("#blacklistName").val(data.data.appName);
	        		$("#id").val(data.data.id);
	        		$("#blacklistValid").check="checked";
	        	
	        	}
	        },error:function(data){
	        	alert("URL ERROR");
	        }
	    });
	}
	
});

</script>
</body>
</html>
